package org.example.easybuy.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.easybuy.entity.Order;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
@Mapper
public interface OrderDao {
    List<Order> selectOrder(Map<String,Object> params);

    Order selectOrderById(int id);
    int updateOrderBySerial(Order order);
    int updateOrderStatus(Map<String,Object> params);
    int addOrder(Order order);
    Order selectBySerialNumber(String serialNumber);
    int updateOrderStatusById(int id);
}
